<template>
    <div class="itemLabel">
        <div class="itemLabel-title" :style="{width: `${width}px`}">{{label}}</div>
        <div class="itemLabel-main">
            <slot>{{comtent}}</slot>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        label: String,
        comtent: String,
        width: {
            type: Number,
            default: 100
        }
    }
}
</script>
<style lang='less'>
.itemLabel {
    display: flex;
    align-items: center;
    padding: 15px;

    &-main {
        flex: 1;
    }
}
</style>
